home *** CD-ROM | disk | FTP | other *** search
/ CD School House 9 / CD School House 9.0 - Wayzata Technology (1994).iso / pc / dos / teachaid / pccai / caiarc2.exe / CAI.HLP < prev    next >
Text File  |  1993-12-06  |  7KB  |  214 lines

  1. CAI Commands Help File
  2. @1,Instructional command for PC-CAI "@" At commands
  3. @3,Textual commands for PC-CAI "." Dot commands
  4. @5,Example of Using @Case Command to Make a Menu
  5. @6,Example Uses of Graphics and Animation
  6. @8,What is Shareware
  7. @9,How to Become a Registered User
  8. @10,Association of Shareware Professionals
  9. ##1
  10.                             PC-CAI "@" (AT) COMMANDS
  11.                             ------------------------
  12.  
  13. @BEGIN QUESTION - Marker at first of a question
  14. @CASE - Branch according to user's answer (see example below).
  15. @CHAIN - Being another CAI program. Example:@CHAIN(*PROG2*)
  16. @END QUESTION - End of a question
  17. @ESCAPE - What happens when user presses Esc
  18. @GOTO - Goto a label (@LABEL)
  19. @GOBACK - Go back to top, then search for a label
  20. @GRADE display grade information. 
  21.       EXAMPLE:@GRADE FILE=GRADE.OUT SUMMARY SCREEN
  22. @IF - Branching option. EXAMPLE:@IF GRADE<70 then:POORGRADE
  23. @LABEL - Branching Location
  24. @MENU - Goto DOS .CAI menu
  25. @MON - Detect the type of monitor being used 
  26.  
  27. (continued)
  28. ##2
  29.  
  30. AT (@) commands continued...
  31. -----------------------------
  32.  
  33. @OPTION - Controls Esc key. Example:@OPTION ESCAPE:MENU
  34. @READ - User enters an answer
  35. @RESTORE - Sets grading information to zero
  36. @RIGHT (*TEXT*) [KEYWORD,EXACT,EXACT NOCASE,SOUNDEX . . .]
  37. @SHELL (*DOSCOMMAND*) - Execute a DOS command
  38. @STOP - End the tutorial/ optional goto. Example:@STOP GO:LABEL
  39. @TRIES ## - Number of times to allow wrong answers
  40. @WRONG (*TEXT*)
  41. @TRIES ##
  42.  
  43. ##3
  44.  
  45.                             PC-CAI TEXTUAL COMMANDS
  46.                             -----------------------
  47.  
  48. .ANIMATE - make up to four images move in sequence
  49. .BLANK ##
  50. .BORDER - create a border. Example:.BORD (*1,1,20,70) double fill
  51. .BOX - Draw a text box. Example:.box(*10,12)/...text.../.endbox
  52. .CENTER (*text*) - center text
  53. .CIRCLE - craw a circle
  54. .CLS or .CLEAR - CLEAR SCREEN. Example: CLS C=176 
  55. (.CHR###) - display an ASCII character. Example:(.CHR222)
  56. .COLOR - set monitor color
  57. .DRAW - draw lines in graphic mode
  58. .GET - Get an image into memory
  59. .INFORMATION ## (*text*) CONDITIONAL - collect information from response
  60.      also (.); .INF 11=Number RIGHT, 12-WRONG, 13-PERCENT RIGHT
  61.      Example: (.INF 1), you got (.INF 11) questions right!
  62.  
  63. (continued)
  64.  
  65. ##4
  66. DOT commands continued...
  67. -------------------------
  68.  
  69. .FUN - Define meanings for function keys. Example .FUN1 = GO:label
  70. .LINE (x,y)-(x,y)
  71. .LOCATE y,x - locate cursor on the screen at y,x
  72. .MOVE - move a single image around the screen
  73. .PAINT - fill an graphic image with a color
  74. .PALETTE - choose graphic color palette
  75. .PAUSE (*PROMPT*) - pause until Enter is pressed
  76. .PCX name x,y - Display a PCX (Paintbrush graphic)
  77. .PLAY (*designation*) ... plays music
  78. .PSET - Place graphic pointer on screen
  79. .RECORD (*TEXT*) FILE=outfile ... records answers
  80. .REM - Remark
  81. .SKIP ##
  82. .USE  - PROG=progname ... temporarily use another file
  83. .VIEW - view contents of ASCII file. Example:.VIEW (*myfile.txt*)
  84.     also, (~15,3~) - change color in text to 15,3
  85. .WAIT # - wait # seconds
  86.  
  87.  
  88. ##5
  89.                     EXAMPLE OF USING @CASE TO CREATE A MENU
  90.                     ---------------------------------------
  91.                                                                                
  92. @CASE(*ABCD:PCX,ANIM,MOVE,END*) center border
  93.   A - Show A Sample PCX Graphics File
  94.   B - Show a Sample Animation
  95.   C - Show Sample Move
  96.   D - End This Program
  97. @END
  98. .pause
  99. @LABEL:PCX
  100. ...place commands here
  101. @LABEL:ANIM
  102. ...place commands here
  103. @LABEL:MOVE
  104. ...place commands here
  105. @LABEL:END
  106. .locate 24,1
  107. .pause (*Press Enter to End this Program*)
  108. @STOP menu
  109.  
  110. ##6
  111.  
  112.                       EXAMPLES OF USING GRAPHICS COMMANDS
  113.                       -----------------------------------
  114.                                                                                
  115. EXAMPLE DISPLAY PCX GRAPHIC
  116. ---------------------------
  117. .screen 1
  118. .cls
  119. .pcx pcxtest.pcx 1,2
  120.  
  121.  
  122. EXAMPLE MOVE
  123. -------------
  124. .screen 1
  125. .cls
  126. .locate 20,1(*Example Moving Single Image*)
  127. .get runner1
  128. .move (1,100)-(250,100)
  129. .locate 20,1 (*                            *)
  130. .locate 20,1
  131. .pause
  132.  
  133.  
  134. ##7
  135.  
  136.                                EXAMPLE ANIMATION
  137.                               ------------------
  138.                                                                                
  139. .SCREEN 1
  140. .cls
  141. .locate 20,1 (*Example Animation*)
  142. .line (1,130)-(155,95)
  143. .line (155,95)-(315,130)
  144. .line (1,130)-(315,130)
  145. .LOAD RUNNER1,RUNNER2,RUNNER3,RUNNER4
  146. .ANIMATE (1,100)-(150,60) STEPX=4 STEPY=-1 PAUSE=.1
  147. .ANIMATE (150,65)-(300,130) STEPX=4 STEPY=1 PAUSE=.1
  148. .locate 20,1 (*                              *)
  149. .locate 20,1
  150. .pause
  151. ##8
  152.                                S H A R E W A R E
  153.                                _________________
  154.  
  155.  
  156.                             TRY IT BEFORE YOU BUY IT
  157.  
  158. The purpose of shareware products is to allow you to try software products
  159. before you buy them.  PC-CAI is not a public domain program, it is fully
  160. copyrighted. Persons who use PC-CAI beyond "trying it out" should purchase a
  161. copy. You receive several benefits from becoming an official registered user:
  162.  
  163. 1. You are officially licensed to use the program.
  164. 2. You help to keep the product growing to meet your needs.
  165. 3. You receive the very latest version, with a printed, bound, and expanded
  166. manual.
  167. 4. You receive periodic newsletters announcing new releases, and pointing out
  168. important information on any bugs and fixes.
  169. 5. You are able to purchase update to new versions for a reduced cost.
  170.  
  171. See the next screen on "How to Register" . . .
  172. ##9
  173.  
  174.                         HOW TO BECOME A REGISTERED USER
  175.                         -------------------------------
  176.  
  177.  
  178. Print out the file on disk named ORDER, fill it out and mail it directly to
  179. TexaSoft. To print this file, you can use the command:
  180.  
  181. COPY ORDER LPT1:
  182.  
  183. or
  184.  
  185. PRINT ORDER
  186.  
  187. To purchase by phone, call 214-291-2115 during business house (Central Time).
  188. Please have your MasterCard or Visa handy. Corporations, schools and
  189. governmental bodies may order with a purchase order. Organizational quantity
  190. discounts and site licenses are available.
  191.  
  192.                               ---Order Today!---
  193.  
  194. ##10
  195.  
  196.                            ┌─────────┐
  197.                      ┌─────┴───┐     │              (tm)
  198.                    ──│         │o    │──────────────────
  199.                      │   ┌─────┴╨──┐ │  Association of
  200.                      │   │         │─┘  Shareware
  201.                      └───│    o    │    Professionals
  202.                    ──────│    ║    │────────────────────
  203.                          └────╨────┘    MEMBER
  204.  
  205. TexaSoft is a member of the Association of Shareware Professionals (ASP).
  206. ASP wants to make sure that the shareware principle works for you.  If you
  207. are unable to resolve a shareware-related problem with an ASP member by
  208. contacting the member directly, ASP may be able to help. The ASP Ombudsman
  209. can help you resolve a dispute or problem with an ASP member, but does not
  210. provide technical support for members' products.  Please write to the ASP
  211. Ombudsman at P.O. Box 5786, Bellevue, WA 98006 or send a Compuserve message
  212. via Easyplex to ASP Ombudsman (70007,3536).
  213.  
  214.